﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List_notic.aspx.cs" Inherits="Three_Managerment_P0501_List_notic" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="/style/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/style/css/style1.css" rel="stylesheet" type="text/css" />
    <link href="/style/css/select.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/style/js/jquery.js"></script>
    <script type="text/javascript" src="/style/js/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="/style/js/select-ui.min.js"></script>
    <script type="text/javascript" src="/style/editor/kindeditor.js"></script>

    <script type="text/javascript">
        KE.show({
            id: 'content7',
            cssPath: './index.css'
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function (e) {
            $(".select1").uedSelect({
                width: 345
            });
            $(".select2").uedSelect({
                width: 167
            });
            $(".select3").uedSelect({
                width: 100
            });
        });
    </script>

    <style>
        .pager {
            width: 95%;
            margin: 10px;
            line-height: 20px;
            display: block;
        }

            .pager span {
                border: 1px solid #CCCCCC;
                margin: 0 5px;
                padding: 1px 6px;
                float: left;
            }

            .pager a {
                border: 1px solid #CCCCCC;
                display: block;
                overflow: hidden;
                float: left;
                margin: 0 5px;
                padding: 1px 6px;
            }

                .pager a:hover {
                    border: 1 solid red;
                    background-color: #1657a8;
                    color: #ffffff;
                    margin: 0 5px;
                    padding: 1px 6px;
                }
    </style>
    <script>
        function yanz() {
            var title = document.getElementById("title").value;
            if (title == "") {
                alert("标题不能为空");
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li><a href="Index.aspx">首页</a></li>
                <li><a href="#">通知公告</a></li>
            </ul>
        </div>
       
        <div class="formbody">


            <div id="usual1" class="usual">

                <div class="itab">
                    <ul>
                        <li><a href="#tab1" class="selected">信息列表</a></li>
                        <li><a href="#tab2">发布公告</a></li>
                    </ul>
                </div>

                <div id="tab1" class="tabson">
                     <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
                   <table class="tablelist">
                        <asp:Repeater runat="server" ID="repeater2">
                            <HeaderTemplate>
                                <thead>
                                    <tr >
                                        <th width="20%">公告标题</th>
                                        <th width="40%">公告内容</th>
                                        <th width="20%">发布时间</th>
                                        <th width="20%">上报人员</th>
                                    </tr>
                                </thead>
                                <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr onclick="javascript:window.location.href='NoticCon.aspx?id=<%#Eval("id") %>'">

                                    <td style="overflow: hidden"><%#Eval("title") %></td>
                                    <td style="overflow: hidden"><%#Eval("cons") %></td>
                                    <td style="overflow: hidden"><%#Eval("rtime") %></td>
                                    <td style="overflow: hidden"><%#Eval("relname") %></td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                 <%#repeater2.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"20\">暂无记录</td></tr>" : ""%>
                                </tbody>
                            </FooterTemplate>
                        </asp:Repeater>
                    </table>


                    <div class="pager">
                        <webdiyer:AspNetPager
                            ID="AspNetPager2" runat="server" AlwaysShow="True" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager2_PageChanged"
                            PrevPageText="上一页" PageSize="10">
                        </webdiyer:AspNetPager>
                    </div>
                         </ContentTemplate></asp:UpdatePanel>
                </div>


                <div id="tab2" class="tabson">
                     <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>

                   <%-- <ul class="seachform">

                        <li>
                            <label>综合查询</label><input name="" type="text" class="scinput" /></li>
                        <li>
                            <label>指派</label>
                            <div class="vocation">
                                <select class="select3">
                                    <option>全部</option>
                                    <option>其他</option>
                                </select>
                            </div>
                        </li>

                        <li>
                            <label>重点客户</label>
                            <div class="vocation">
                                <select class="select3">
                                    <option>全部</option>
                                    <option>其他</option>
                                </select>
                            </div>
                        </li>

                        <li>
                            <label>客户状态</label>
                            <div class="vocation">
                                <select class="select3">
                                    <option>全部</option>
                                    <option>其他</option>
                                </select>
                            </div>
                        </li>

                        <li>
                            <label>&nbsp;</label><input name="" type="button" class="scbtn" value="查询" /></li>

                    </ul>--%>


                   <div class="formbody">

            <div class="formtitle"><span>基本信息</span></div>
     
            <div class="bottab2">
                <div class="bottab2_l">
                    <p>公告标题：</p>
                    <input name="" id="title" maxlength="50" runat="server" type="text" />
                    <span>*</span>
                </div>
                <div class="bottab2_r">
                    <p>附件上传：</p>
                    <asp:FileUpload runat="server" ID="file"/>
                    <span></span>
                </div>
            </div>
 
          
            <div class="bottab1" style="height: 210px;">
                <p>主要内容：</p>
                <!--<input type="text" value="123456789" /> -->
                <!--  <span>（说明：请限制在2000字以内，最好写明问题归属的区县或机关单位。）</span>-->
                <textarea name="" maxlength="200" id="con" runat="server" style="resize: none" class="textinput"></textarea>
            </div>



                </div>
                         </ContentTemplate></asp:UpdatePanel>
                    <asp:Button runat="server" OnClientClick="return yanz()"   name="" type="button" class="bunt_2" Style="margin-right: 20px" OnClick="Unnamed_Click" Text="提交" /><label>&nbsp;</label><input name="" type="reset" class="bunt_2" value="重置" />
            </div>
                 
            <script type="text/javascript">
                $("#usual1 ul").idTabs();
            </script>

            <script type="text/javascript">
                $('.tablelist tbody tr:odd').addClass('odd');
            </script>





        </div>
            
    </form>
</body>
</html>
